package com.offcn.mapper;


import com.offcn.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 *  sunbing
 *    注册的功能
 */
public interface UserMapper {
   /* uid uname utype ucomname utel ucity uaddress umail upwd uremark*/
   int   insertUser(@Param("uname") String uname, @Param("ucomname") String ucomname,
                    @Param("utype") int utype, @Param("ucity") String ucity,
                    @Param("utel") String utel,
                    @Param("uaddress") String uaddress, @Param("umail") String umail,
                    @Param("upwd") String upwd, @Param("uremark") String uremark);

   // 根据用户名与密码进行查询

    User  selectByUser(@Param("uname") String uname, @Param("upwd") String upwd);
}
